<input type="file" id="fileinput" multiple />
<script type="text/javascript">
	var RNAQCdata
  function readMultipleFiles(evt) {
    //Retrieve all the files from the FileList object
    var files = evt.target.files;
    if (files) {
    	var k = 0
        for (var i=0, f; f=files[i]; i++) {
        	RNAQCdata = new Array(files.length);
	          var r = new FileReader();
            r.onload = (function(f) {
                return function(e) {
                	//var RNAQCdata[i] = new Array(9)
                    var text = e.target.result;
                      			//#var text = reader.result;
					  			//console.log(text)
					  			var n = text.split(/\r?\n/);
					  			var nSplit = n[7].split(/\t/);
					  			//console.log(i);
					  			Temp = new Array(10);
					  			Temp[0] = f.name
					  			Temp[1] = nSplit[1];
					  			Temp[2] = nSplit[10];
					  			Temp[3] = nSplit[11];
					  			Temp[4] = nSplit[12];
					  			Temp[5] = nSplit[13];
					  			Temp[6] = nSplit[14];
					  			Temp[7] = nSplit[15];
					  			Temp[8] = nSplit[16];
					  			k = k+1
					  			//console.log(k)
					  			//console.log(Temp)
								RNAQCdata[k] = Temp
								//alert(RNAQCdata)
                    //alert(Temp)
                };
            })(f);
            r.readAsText(f);
        }
    } else {
	      alert("Failed to load files");
    }

  }
  document.getElementById('fileinput').addEventListener('change', readMultipleFiles, false);
  alert(RNAQCdata)
</script>
